<?php

/**
 * @author vladone
 * @copyright 2007
 */

include ('include/conf.php');
$id_connect = connect_to_database(HOST, USER, PASS, DATABASE);
/*
$str = "UPDATE credit SET cost='18' WHERE companie='Orange (Amena)-Spain'";
mysql_query($str, $id_connect);
echo "gata";
exit();
*/
$str = "SELECT imei FROM coduri WHERE companie='Orange (Amena)-Spain'";
$result = mysql_query($str, $id_connect);
while ($value = mysql_fetch_assoc($result)) {
   // $str = "UPDATE credit_clienti SET cost='6' WHERE marca='Motorola' AND companie='ALL COMPANY' AND nume!='emy'";
   echo $value['imei']."<br>";
}
/*
$str = "UPDATE plati set data_estimata=' '";
mysql_query($str, $id_connect);
*/
?>